//
// Created by v on 2019/10/24 上午10:34.
// Copyright (c) 2019 jmdvirus All rights reserved.
//
//     ******          *             *--*
//       ||            *             |
//       ||  *--*--*---*  * *-********--*
//    * //   *  *  *   *\ / ||  |  |    |
//     **    *  *  *---* *  *   *--* *--*
//

#include <QPainter>
#include <map>

#include "CMShowQtBase.h"
#include "QLayout"

CMShowQtBase::CMShowQtBase(QWidget *parent)
{
    setParent(parent);
    QVBoxLayout *g = new QVBoxLayout();
    g->addWidget(&m_labelCircle);
    g->addWidget(&m_label);
    setLayout(g);
}

void CMShowQtBase::showLabel()
{
    m_label.setFixedHeight(80);
    m_label.setText("123445");
    m_label.setAlignment(Qt::AlignCenter);
    m_label.setStyleSheet(
        "background:rgba(102, 102, 102, 0.88); border-radius:20px; border: 0px "
        "solid gray; padding: 20px 10px");
    m_label.show();
    //    m_labelCircle.setGeometry(0, 0, 20, 50);
    m_labelCircle.setFixedSize(20, 20);
    m_labelCircle.setAlignment(Qt::AlignCenter);
    m_labelCircle.setStyleSheet("background-color:red;border-radius:10px;");
    m_labelCircle.show();
}
